package ar.edu.unicen.exa.isistan.archassis.view.dialogs;

import java.util.List;
import java.util.concurrent.Callable;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;

import ar.edu.unicen.exa.isistan.archassis.control.ControlManager;
import ar.edu.unicen.exa.isistan.archassis.ia.api.db.JavaClass;

public class GetJavaClassListWorkingDialog extends AbstractWorkingDialog<List<JavaClass>> {
	public GetJavaClassListWorkingDialog(Shell parent) {
		super(parent, SWT.BORDER);
	}

	@Override
	protected Callable<List<JavaClass>> createCallable() {
		return new Callable<List<JavaClass>>() {
			
			@Override
			public List<JavaClass> call() throws Exception {
				return ControlManager.getInstance().process2();
			}
		};
	}

	@Override
	protected String getTextInfo() {
		return "Obteniendo modificaciones";
	}

}
